﻿@model EquipmentSearchModel
@{
    ViewBag.Title = "设备查询";
}
@section BodyNav
{
    > @Html.ActionLink("备案设备列表", "List", "Equipment") > 设备查询
}
@section JS
{
    <script src="@Url.Content("~/Scripts/EquipmentSearch.js")" type="text/javascript"></script>
}
@using (Html.BeginForm())
{
    <table class="window" style="width: 350px">
        <tr class="head">
            <th colspan="4">
                设备查询
            </th>
        </tr>
        <tr>
            <th width="55">@Html.LabelFor(t => t.NO_Start)
            </th>
            <td colspan="3">@Html.TextBoxFor(t => t.NO_Start, new { @class = "widthHalf" })
                -- @Html.TextBoxFor(t => t.NO_End, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.RegisterDT_Start)
            </th>
            <td colspan="3">@Html.TextBoxFor(t => t.RegisterDT_Start, new { @class = "widthHalf" })
                --
                @Html.TextBoxFor(t => t.RegisterDT_End, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.OwnerName)
            </th>
            <td>@Html.TextBoxFor(t => t.OwnerName, new { @class = "widthHalf" })
            </td>
            <th width="55">@Html.LabelFor(t => t.Name)
            </th>
            <td>@Html.DropDownListFor(t => t.Name, ViewBag.Names as IList<SelectListItem>, "请选择", new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.EquipmentModel)
            </th>
            <td>@Html.TextBoxFor(t => t.EquipmentModel, new { @class = "widthHalf" })
            </td>
            <th width="55">@Html.LabelFor(t => t.ProductCompany)
            </th>
            <td>@Html.TextBoxFor(t => t.ProductCompany, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.CertNO)
            </th>
            <td>@Html.TextBoxFor(t => t.CertNO, new { @class = "widthHalf" })
            </td>
            <th width="55">@Html.LabelFor(t => t.MadeNo)
            </th>
            <td>@Html.TextBoxFor(t => t.MadeNo, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.CreateDT_Start)
            </th>
            <td colspan="3">@Html.TextBoxFor(t => t.CreateDT_Start, new { @class = "widthHalf" })
                --
                @Html.TextBoxFor(t => t.CreateDT_End, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(t => t.LimitedYear_Start)
            </th>
            <td colspan="3">@Html.TextBoxFor(t => t.LimitedYear_Start, new { @class = "widthHalf" })
                --
                @Html.TextBoxFor(t => t.LimitedYear_End, new { @class = "widthHalf" })
            </td>
        </tr>
        <tr>
            <th colspan="4">@Html.CheckBoxFor(m => m.IsExpired)@Html.LabelFor(m => m.IsExpired)<br />
                @Html.CheckBoxFor(t => t.IsWorking, new { @checked = "checked" }) @Html.LabelFor(m => m.IsWorking)<br />
                @Html.CheckBoxFor(t => t.IsAvailable, new { @checked = "checked" }) @Html.LabelFor(t => t.IsAvailable)
            </th>
        </tr>
        <tr>
            <td colspan="4">
                <input type="submit" value="提交" class="btnBtn" />
                @Html.ActionLink("下载已过期设备", "ExportToExcel", "Equipment", null, new { @class = "lnkBtn" })
            </td>
        </tr>
    </table>
}